import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import { store } from "./store/index.ts";
import { Provider } from "react-redux";
// 引入路由模式的包裹组件 BrowserRouter / HashRouter
import { BrowserRouter } from "react-router-dom";

console.log(process.env.REACT_APP_ENV);

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <BrowserRouter>
    <Provider store={store}>
      <App />
    </Provider>
  </BrowserRouter>
);
